/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: syyyy
 * Date: 2025-07-17
 * Time: 13:29
 */
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Person p = new Person();
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNextInt()) {
            int age = scanner.nextInt();
            p.setAge(age);
            System.out.println(p.getAge());
        }
    }

}

class Person {

    private int age;

    public void setAge(int age){//这里改变的只是形参，要加上this.才可以改变成员变量的值
        if(age<=0){
            this.age=0;
            System.out.println("0");
        }else if(age>=200){
            this.age=200;
            System.out.println("200");
        }else{
            this.age=age;
            System.out.println(age);
        }
    }

    public int getAge(){
        return age;
    }

}
